//
//  UIColor+AWColor.h
//  Pods
//
//  Created by TryHone on 17/9/6.
//
//

#import <UIKit/UIKit.h>

#define UIColorFromHex(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16)) / 255.0 green:((float)((hexValue & 0xFF00) >> 8)) / 255.0 blue:((float)(hexValue & 0xFF)) / 255.0 alpha:1.0f]


@interface JFColorModel : NSObject
@property (nonatomic,assign) int R;
@property (nonatomic,assign) int G;
@property (nonatomic,assign) int B;
@property (nonatomic,assign) CGFloat alpha;
@end


@interface UIColor (AWColor)
// 颜色转换：iOS中（以#开头）十六进制的颜色转换为UIColor(RGB)
+ (UIColor *) awColorWithHexString: (NSString *)color;
+ (UIColor *) ColorWithHexString: (NSString *)color;
+ (UIColor *) colorWithHexString: (NSString *)color;

+ (UIColor *) awColorWithHexString: (NSString *)color withAlpha:(CGFloat)alpha;
+ (JFColorModel *) awRGBWithHexString: (NSString *)color withAlpha:(CGFloat)alpha;
+ (UIColor*)awRandomColor;
- (NSString *)awHexString;


@end
